from __init__ import db
import datetime

class Message(db.Model):
    __tablename__ = 'message'
    __table_args__ = {
        'mysql_charset': 'utf8mb4'
    }
    id = db.Column(db.INT,primary_key=True,autoincrement=True)
    senderid = db.Column()
    recverid = db.Column()
    title = db.Column(default="no title")
    msg = db.Column(default="no msg")
    time = db.Column( default=datetime.datetime.now() )
    msglink = db.Column()